package com.aode.sovo_miniprogram.pojo;

import com.baomidou.mybatisplus.annotation.*;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class Secondclass {
    @TableId(value = "sclass_id",type = IdType.AUTO)
    private Integer sclass_id;
    private String sclass_name;
    private String sclass_img;
    private int class_id;
    //1 代表存在的值  0 代表已删除的值
    @TableLogic(value = "1",delval = "0")
    private Integer sclass_isdelete;

    //创建表的时候自动插入数据 时间
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;

    //更新表的时候自动修改数据 时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date update_time;

    public Secondclass() {
    }

    public Secondclass(Integer sclass_id, String sclass_name, String sclass_img, int class_id) {
        this.sclass_id = sclass_id;
        this.sclass_name = sclass_name;
        this.sclass_img = sclass_img;
        this.class_id = class_id;
    }

    public String getSclass_img() {
        return sclass_img;
    }

    public void setSclass_img(String sclass_img) {
        this.sclass_img = sclass_img;
    }

    public Integer getSclass_id() {
        return sclass_id;
    }

    public void setSclass_id(Integer sclass_id) {
        this.sclass_id = sclass_id;
    }

    public String getSclass_name() {
        return sclass_name;
    }

    public void setSclass_name(String sclass_name) {
        this.sclass_name = sclass_name;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    @Override
    public String toString() {
        return "Secondclass{" +
                "sclass_id=" + sclass_id +
                ", sclass_name='" + sclass_name + '\'' +
                ", class_id=" + class_id +
                ", sclass_isdelete=" + sclass_isdelete +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
